We had forgotten to do that in a few places; this is a systematic search for those.
https://bugzilla.gnome.org/show_bug.cgi?id=646461
-1);
if (cancellable)
- g_cancellable_cancel (cancellable);
+ {
+ g_cancellable_cancel (cancellable);
+ g_object_unref (cancellable);
+ }
switch (type)
{
int bookmarks_index;
GFile *file;
GError *error;
- gchar *name;
+ gchar *name = NULL;
/* Get the selected path */
out:
g_object_unref (file);
+ g_free (name);
}
/* Callback used when we get the drag data for the bookmarks list. We add the
if (is_folder && file)
{
change_folder_and_display_error (impl, file, FALSE);
+ g_object_unref (file);
goto out;
}
if (!display_name || !file)
{
- /* these shouldn't complain if passed NULL */
- g_object_unref (file);
+ if (file)
+ g_object_unref (file);
+
g_free (display_name);
return FALSE;
}